import {defineComponent, ref} from 'vue';
import {ElButton, ElSwitch} from 'element-plus';
import Test from '@/components/test.vue';
import {getCurrentInstance} from 'vue';
export default defineComponent({
    setup() {
        const instance = getCurrentInstance();
        const state = ref(false);
        function svgClick() {
            instance?.proxy?.$message('hello');
            instance?.proxy?.$notify.success('提示...');
        }
        return () => <div>
            <ElButton>按钮</ElButton>
            <Test></Test>
            <svg-icon iconClass="bug" color="yellow"></svg-icon>
            <svg-icon iconClass="404" color="green" onClick={ svgClick}></svg-icon>
            <ElSwitch v-model={state.value} />
            <h1>Dashboard page</h1>
        </div> 
    }
});